<template>
  <div class="app-container">
    <mt-header fixed :title="$store.getters.getTitle"></mt-header>
    <div class="nav" v-if="this.$route.fullPath == '/film' || this.$route.fullPath == '/film/coming' ? flag=true:flag=false" v-show="flag">
      <router-link to="/" tag="span"><span>广州</span></router-link>
      <div class="nav-oning">
        <router-link to="/film" class="oning">正在热映</router-link>
        <router-link to="/film/coming" class="oning">即将上映</router-link>
      </div>
      <router-link to="/search"><span class="mui-icon mui-icon-search"></span></router-link>
    </div>

    <transition>
      <router-view />
    </transition>

    <nav class="mui-bar mui-bar-tab">
			<router-link class="mui-tab-item-llb" to="/film">
				<span class="mui-icon mui-icon-extra mui-icon-extra-computer"></span>
				<span class="mui-tab-label">电影</span>
			</router-link>
			<router-link class="mui-tab-item-llb" to="/cinema">
				<span class="mui-icon mui-icon-extra mui-icon-extra-class"></span>
				<span class="mui-tab-label">影院</span>
			</router-link>
			<router-link class="mui-tab-item-llb" to="/me">
				<span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">我的</span>
			</router-link>
		</nav>

  </div>
</template>

<script>
import mui from './lib/js/mui.min.js'
export default {
  data(){
    return{
      flag : false,
      
    }
  },
  // computed:{
  //   title(){
  //     return this.$store.state.title
  //   }
  // },
  created(){
    console.log(this.$route)
  },
  methods:{

  }
}
</script>

<style lang="scss" scoped>
*{ touch-action: pan-y; }
.mint-header{
  background-color: red;
  padding: 25px 0;
  font-size: 18px;
  z-index: 100;
}
.app-container{
  padding: 50px 0;
  overflow: hidden;
  .nav{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid rgb(228, 228, 228);
    .nav-oning{
        width: 45%;
        display: flex;
        justify-content: space-between;
        .oning{
          color: red;
          border-color: red;
          font-weight: bold;
        }
    }
    .mui-icon-search{
        color: red;
    }
  }
  .mui-bar-tab .mui-tab-item-zzd.mui-active {
    color: red;
  }
}
.v-enter{
  opacity: 0;
  transform: translateX(100%);
}
.v-leave-to{
  opacity: 0;
  transform: translateX(-100%);
  position: absolute;
}
.v-enter-active,
.v-leave-active{
  transition: all 0.5s ease;
}
.mui-bar-tab .mui-tab-item-llb.mui-active {
    color: red;
}
.mui-bar-tab .mui-tab-item-llb {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
}
.mui-bar-tab .mui-tab-item-llb .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
}
.mui-bar-tab .mui-tab-item-llb .mui-icon~.mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
</style>

